package com.fp.m7.dao;

import java.util.List;

import com.fp.m7.model.Account;
import com.fp.m7.model.Follow;

public interface FollowDao extends BaseDao<Follow> {

    void follow(Account follower, Account followed);

    void unfollow(Account follower, Account followed);

    boolean isFollowing(Account user, Account other);

    boolean isFollowedBy(Account user, Account other);

    List<Account> getFollowersForUser(Account user);

    List<Account> getFollowedByUser(Account user);

    int countActiveFollowers(Account followed);

    int countActivelyFollowed(Account follower);

}
